/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.terrier.utility;

import java.util.Enumeration;
import java.util.Properties;

/**
 *
 * @author admin
 */
public class NewClass {
    public static void main(String a[]){
       // Get all system properties
Properties props = System.getProperties();
System.setProperty("terrier.home", "D:\\IR\\Terrier");
// Enumerate all system properties
Enumeration enu = props.propertyNames();
for (; enu.hasMoreElements(); ) {
    // Get property name
    String propName = (String)enu.nextElement();

    // Get property value
    String propValue = (String)props.get(propName);
    System.out.println(propName +"         "+propValue);
}
System.out.println(System.getProperty("terrier.home"));
}
}
